Pass FORTRAN variable to Python [migrated]
Posted
by
Matthew Bilskie
on Programmers
See other posts from Programmers
or by Matthew Bilskie
Published on 2012-05-30T13:09:24Z
Indexed on
2012/05/30
16:59 UTC
Read the original article
Hit count: 453
I have a FORTRAN program that is called from a Python script (as an ArcGIS tool). I need to pass an array, Raster_Z(i,j), from FORTRAN to python.
I have read about the Python subprocess module; however, I have not had much luck in understanding how to do this with FORTRAN. All examples I have found involve simple unix command line calls and not actual programs.
Has anyone had any experience in passing a variable from FORTRAN to Python via a memory PIPE?
Thank you for your time.
© Programmers or respective owner